<?php
if($this->session->userdata('admin_type') == 'Web Admin')
{
	$this->admin = 'admin';
}
$this->load->view('admin/head'); 
$this->load->view('admin/header');
?>
<!-- Content -->
<div class="space30"></div>
<div class="container">
	<div class="row">
		<div class="col-md-2">
			<nav class="navbar1">
				<?php $this->load->view('admin/left_nav'); ?>
			</nav>
		</div>
		<div class="col-md-10">
        <!--form starts-->
        	<div class="form_container">
            		<h4>Create Admin</h4>
                    <span class="success_msg"> <?php echo $this->session->userdata('message');  $this->session->unset_userdata('message')?></span>
                    
                    <!--row starts--> 
                    <form action="#" method="post" id="createadminform">
                    
                <!--row starts-->
                    	<div class="row1">
                    	<div class="form-group col-sm-12">
                        	<label for="fullname2">Full Name <span class="asterisk">*</span></label>
                            <input class="form-control white" id="namefull" name="fullname" onBlur="this.value=jQuery.trim(this.value); " type="text" value="<?php echo $this->input->post('fullname');?>">
                            <span class="err_admin"><?php echo form_error('fullname'); ?></span>
                            <div class="error" id="err-name"></div>
                        </div>
                        <div class="clearfix"></div>
                    </div>        
                    <!--row closed-->
                     <!--row starts-->
                    	<div class="row1">
                    	<div class="form-group col-sm-12">
                        	<label for="email2">Email<span class="asterisk">*</span></label>
                            <input class="form-control white" id="emailid" name="email"onBlur="this.value=jQuery.trim(this.value)" type="text" value="<?php echo $this->input->post('email');?>">
                            <span class="err_admin"><?php echo form_error('email'); ?> </span>
                            <div class="error" id="err-name1"></div>
                        </div>  
                        <div class="clearfix"></div>
                    </div>    
                    <!--row closed-->
                     <!--row starts-->
                    	<div class="row1">
                    	<div class="form-group col-sm-12">
                        	<label for="password2">Password<span class="asterisk">*</span></label>
                            <input class="form-control white" required id="npassword" name="password" onBlur="this.value=jQuery.trim(this.value)" type="password" value="">
                             <span class="err_admin"><?php echo form_error('password'); ?></span>
                             <div class="error" id="err-name2"></div>
                        </div>  
                        <div class="clearfix"></div>
                    </div>
                    <!--row closed-->
                     <!--row starts-->
                    	<div class="row1">
                    	<div class="form-group col-sm-12">
                        	<label for="confirm_password2">Confirm Password<span class="asterisk">*</span></label>
                            <input class="form-control white" required id="cpassword" name="confirm_password"onBlur="this.value=jQuery.trim(this.value)" type="password" value="">
                           <span class="err_admin"> <?php echo form_error('confirm_password'); ?></span>
                           <div class="error" id="err-name3"></div>
                        </div>  
                        <div class="clearfix"></div>
                    </div>
                    <!--row closed-->
                     <!--row starts-->
                    	<div class="row1">
                    	<div class="form-group col-sm-12">
                        	<label for="contact_no2">Contact Number</label>
                            <input class="form-control white" id="cno" name="contact_no"onBlur="this.value=jQuery.trim(this.value)" type="text" value="<?php echo $this->input->post('contact_no');?>">
                             <span class="err_admin"><?php echo form_error('contact_no'); ?></span>
                             <div class="error" id="err-name4"></div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <!--row closed-->
                    
                    <!--row starts-->
                    	<div class="row1">
                    	<div class="form-group col-sm-12">
                        	<label for="Remark2">Remark</label>
                            <textarea class="form-control white" id="rmrk" name="Remark" onBlur="this.value=jQuery.trim(this.value)" type="text"><?php echo $this->input->post('Remark'); ?></textarea>
                             <span class="err_admin"><?php echo form_error('Remark'); ?></span>
                             <div class="error" id="err-name4">Please enter</div> 
                        </div>
                        <div class="clearfix"></div>
                    </div> 
                    <!--row closed-->
                </div>
        <!--form closed-->
         <div class="space30"></div>
         <input type="button" name="button" class="btn btn-primary" value="Submit" id="createadmin">
     		</form>
      </div>
       
		<div class="clearfix"></div> 
	</div> 
</div>

<div class="space20"></div>

<div class="space30"></div>

<!-- Content End -->
<?php $this->load->view('common/footer'); ?>